<template>
	<view class="input_wrap">
		<tn-input class="input" @focus="go_search" v-model="search_value"inputAlign="center" placeholder="请输入商品名称" />
	</view>
</template>

<script>
	export default {
		data() {
			return {
				search_value:""
			}
		},
		methods:{
			go_search(){
				uni.navigateTo ({
				  url: '/pages/search/search'
				});
			}
		}
	}
</script>

<style scoped>
	/deep/ .tn-input {
		padding-left: 20rpx;
		border-radius: 20px;
	}

	.input_wrap {
		position: relative;
		width: 100%;
		height: 110rpx;
		background-color: #1296db;
	}

	.input {
		position: absolute;
		top: 20rpx;
		width: 90%;
		margin-left: 5%;
		background-color: #fff;
	}
</style>